import React from "react";
import { connect } from "react-redux";
const Home = props => {
  const { Home } = props;
  // console.log(Home.list.id);
  console.log(Home.list.findxOf(item => item.name === "天"));
  return (
    <div>
      {/* {Home.list[0].id} */}
      {Home.list.findIndex(item => item.id === 1)}
    </div>
  );
};
const mapStateToProps = (state, ownProps) => {
  return state;
};
const mapDispatchToProps = (dispatch, ownProps) => {
  console.log(ownProps);
  return {};
};
export default connect(mapStateToProps, mapDispatchToProps)(Home);
